<?php 
use yii\helpers\Url;
use yii\widgets\LinkPager;
echo $this->render('_centernav')

?>
<!-- <link rel="stylesheet" type="text/css" href="/assets/css/xuexizhong.css"/>
<link rel="stylesheet" type="text/css" href="/assets/css/public1.css"/> -->
    <div class="you">
    <p><a href="<?= Url::to(['center/course'])?>">学习中</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="<?= Url::to(['center/courseend'])?>">学完</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="<?= Url::to(['center/coursecollect'])?>">收藏</a></p>
	<?php foreach($course as $k=>$v){?>
    <div class="tu" style='float:left'>
	<a href="#"><img src="http://files.bwphp.com/<?php echo $v['course_thumb']?>" width="346" height="253" /></a>
	<p>课程名称：<?php echo $v['course_name']?></p>
	<p>课程描述：<?php echo $v['describe']?></p>
	<p>学习人数：<?php echo $v['apply_num']?></p>
	<?php if($v['is_serialize']==0){
				$v['is_serialize'] = '非连载';
			}else if($v['is_serialize']==1){
				$v['is_serialize'] = '连载中';
			}else if($v['is_serialize'] == 2){
				$v['is_serialize'] = '已完结';
			}
	?>
	<p>更新状态：<?php echo $v['is_serialize']?></p>
	<p>更新时间：<?php echo date('Y-m-d H:i:s',$v['upd_time'])?></p>
	</div>
    <?php }?>
	
   <?php echo LinkPager::widget([
				'pagination' => $pagination,
				'prevPageLabel'=>'上一页',
				'nextPageLabel'=>'下一页',
			]);?>
    
    </div>
	
</div>